//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.example.erp.exception;

public enum ErrorCode implements StatusDefinition {
    OTHER_ERROR("100001", "其他错误"),
    CALC_MD5_ERROR("100002", "calc MD5 error"),
    SYSTEM_LIMITER("100003", "系统限流保护"),
    API_LIMITER("100004", "API限流保护"),
    ILLEGAL_CONCURRENT_CALL("100005", "非法重复调用"),
    TIME_OUT("100006", "系统超时"),
    CONNECTION_TIME_OUT("100007", "连接超时"),
    VERIFY_FAILED("100008", "验签失败"),
    VERIFY_EXPIRE("100009", "签名已过期"),
    UNZIP_FAILED("100010", "解压失败"),
    ENCODER_FAILED("100011", "编码失败"),
    DECODER_FAILED("100012", "解码失败"),
    PARAM_ERROR("100013", "参数错误"),
    NOT_SUPPORT_METHOD("100014", "不支持的调用"),
    NOT_SUPPORT_OPERATOR("100015", "不支持的操作"),
    SERVER_REFUSE("100016", "服务拒绝"),
    ILLEGAL_ARGUMENT("100017", "非法参数"),
    JSON_SERIALIZE_FAIL("100018", "json序列化失败"),
    CONCURRENT_CACHE_KEY_TIMEOUT("100019", "concurrent cache key timeout"),
    PARAM_MISSING("100020", "缺少参数");

    private String errorCode;
    private String errorReason;

    private ErrorCode(String errorCode, String errorReason) {
        this.errorCode = errorCode;
        this.errorReason = errorReason;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorReason() {
        return this.errorReason;
    }
}
